-
Notifications
You must be signed in to change notification settings - Fork 779
添加应用重新加载功能 #4513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
添加应用重新加载功能 #4513
Conversation
|
看起来好像和 #4468 部分重复 |
|
本pr的重载功能逻辑:当需要重启生效的配置被修改(目前看到的有关闭动画、抗锯齿、语言切换选项)的时候,在标题栏右侧出现重载按钮,点击进行重载。后续有类似的功能需要实现,添加Property对应的Listener即可。 config().localizationProperty().addListener(restartButtonListener);
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我测试了一下。
- 语言重载目前没看到问题。
- 抗锯齿重载我目前无法给出结论。
- 关闭动画重载没有效果。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我很怀疑这个“重新加载”功能是否有意义。
需要重新启动才能生效的选项大部分是因为必须在 JavaFX 初始化之前才能应用设置,运行时重新加载不会有任何效果。
| private Controllers() { | ||
| } | ||
|
|
||
| private static void setupFontAntialiasing() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
重载该选项没有意义,该选项只有在 JavaFX 界面显示前生效。
|
怀疑此功能的意义。 |
No description provided.